package com.flag.liutao.modules.role.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("权限请求参数")
public class MenuParam implements Serializable {
    @NotBlank(message = "权限名称不能为空")
    @ApiModelProperty("权限名称")
    private String menuName;

    @NotBlank(message="权限标识不能为空")
    @ApiModelProperty("权限标识")
    private String menuKey;

    @ApiModelProperty("路由地址")
    private String path;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("路由地址")
    private Integer status;

    @ApiModelProperty("父级菜单")
    private Long pid;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("权限类别")
    private String type;
}
